package com.hxzy.course.service;

import com.hxzy.course.mapper.TimeMapper;
import com.hxzy.course.pojo.Time;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeService {
    @Autowired
    private TimeMapper timeMapper;

    public List<Time> getAllTime(){
        List<Time> list = timeMapper.selectList(null);
        return list;
    }
}
